<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Title</title>
    <!-- 引入CSS文件 -->
    <link href='../static/css/bundle.css' rel='stylesheet'/>
    <!-- 引入js文件 -->
    <script src="../static/js/bundle.js"></script>
    <script src="../static/js/config.js"></script>
</head>
<body>
<div id="map" style='width: 100%; height: 600px;'></div>
<div>content:<br>
    <div id="content"></div>
</div>
<script type="application/javascript">
    creeper.CreeperConfig.token = "c2hvd3RpbWU6OTA5MDdlMzM4MDgwNDJlZWZjMGE0ZjRmYTgyNTAxZGE=";

    var rasterMap = new creeper.RasterMap('map', config.rmapId, config.mapBaseUrl);

    var content = document.getElementById('content');

    rasterMap.on('overlayer.click', function (e) {
        content.innerText = JSON.stringify(e.feature, null, 4);
    })


</script>
</body>
</html>
